package com.zd.springcloud.busy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.stringtemplate.v4.ST;

@RestController
@RefreshScope
public class TestNacosConfigController {

    @Value("${responsePrefix:2233}")
    private String responsePrefix;

    @Value("${spring.test111}")
    private String name;



    @RequestMapping("/getResult1")
    public String getResult1(){
        return name;
    }

    @RequestMapping("/getResult")
    public String getResult(){
        return responsePrefix;
    }

}
